package com.bnlr.lrparking.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : tian
 *         time   : 2018/03/23
 *         desc   :
 */

public class HomePopBean {

    /**
     * errorCode : 0
     * msgcode : 1
     * msg : 成功
     * data : {"money":10,"shareValue":790}
     * recordCount : 0
     */

    private int errorCode;
    private String msgcode;
    private String msg;
    private DataBean data;
    private int recordCount;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public static class DataBean implements Parcelable {
        /**
         * money : 10
         * shareValue : 790
         */

        private int money;
        private int shareValue;

        public int getMoney() {
            return money;
        }

        public void setMoney(int money) {
            this.money = money;
        }

        public int getShareValue() {
            return shareValue;
        }

        public void setShareValue(int shareValue) {
            this.shareValue = shareValue;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.money);
            dest.writeInt(this.shareValue);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.money = in.readInt();
            this.shareValue = in.readInt();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
